#include<iostream>
#include"socket.h"

int main(){
    Socket sock;
    sock.CreateClient("127.0.0.1",8081);
    std::string msg="GET / HTTP/1.1\r\nContent-Length: 0\r\n\r\n";
    sock.Send(msg);
    Buffer buffer;
    sock.Recv(buffer);
    std::cout<<buffer.ReadAndPop()<<std::endl;
    return 0;
}